Package com.streamwide.smartms.lib.core.api_ktx

This package contains the new APIs kotlin for (contact, account, messaging,...)

Types

Link copied to clipboard
sealed class ApiResult<out R>
Link copied to clipboard
open class Error(    var code: Int,     var message: String?,     val throwable: Throwable? = null)

Container to encapsulate all errors, to ease passing around error code + error message in The API Callbacks.

Link copied to clipboard
interface ErrorListener<T : Error>

A set of callbacks for any API request.

Link copied to clipboard
interface OperationListener<T> : ErrorListener<Error>

A generic callback for any API request with success fun additional to the error implementation.

Properties

Link copied to clipboard
const val NETWORK_ERROR: Int
Link copied to clipboard
const val TIMEOUT_ERROR: Int